/**
 * 				serverInterface.java
 *				------------
 *		
 *   Author:	bin04017@gmail.com
 *	 Created:	13.12.2006
 *	 Project:	MP3-Sync (Mochito)
 *	 Package:	serverClasses
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 */
package mochito.serverClasses;

import java.io.FileNotFoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Set;

import mochito.dataClasses.musicItem.MusicItem;


/**
 * @author bin04017
 *
 */
public interface ServerInterface extends Remote{
	byte[] retrieveFile(String name) throws RemoteException, FileNotFoundException;
	String getMusicItemStartTime(String name) throws RemoteException;
	String getMusicItemStartDate(String name) throws RemoteException;
	void addMusicItem(MusicItem item) throws RemoteException;
	Set<String> getMusicItems() throws RemoteException;
	void removeMusicItem(MusicItem item) throws RemoteException ;
	public String getMusicItemFile(String item) throws RemoteException;
}
